Added additional console logging.