Added log function
Added Suraj comment