Improved logger.