Added logging of essential steps in controllers.