Added some log statements