Implemented log.