The app loop is implemented