added logging.