Well Shit. Late night coding needs more coffee.