Adds dependencies to controllers.