Revert "I deleted a bunch of code."

This reverts commit ac2aa5b6b283a64989ea9d0a95a79a51462a2a61.