Adding log statements