Removed logger.debug statement which was only for temporary debugging.