Prepare application