Rewrite this damn thing.