Adding code for creating application.