added light logging.