I should get tests around this crap.