Rewrote the whole thing.