Added router as requirement for the application object