Fixing html and logging.