Adding main application