The main application