#1: Added logging.