Better handling and logging of junk data.