Revamped logging.