Adding sensible logging.