Add logging to controller.