Added Logging support in controller