This is the 89234024th rewrite of this friggin' code