Top 10 contestant for ugliest code I've ever written