Replaced logger.log calls with logger.info