Better handling for log.