Trivia cleanup script. Hasty and not good code, but it works.