Horribly written code that works.