Removed non-static use of MainApp