Basic framework for application.