Worst.  Code.  Ever.