Modified: Preparing application and menu.