Refactored and simplified with aim of Application object handling running of application