Implemented Logging.