Added logging to controller calls.