Main file for BaseApp