Rewrote it from scratch.