Refactored Application class, extracted Timer class.