The main application core