Implemented tasks controller.