Implemented controller dependency injection.