Fixing stupid typo.
Adding logging.