First implementation of a controller.