Removed duplication from logger.