Replaced puts with stdlib logger.