Preparing the application