Rewritten application class