Moved application startup to own class