Preparing an application