First commit. All stuff for Application.