Added log statements