Changed to use logger.debug