Removing unnecessary log statements