Fix title attribute. Tweaks to logging.