Adding some log statements