Create main application.