Add more logging to the controller