Persistent Gear #3

Fully working, although a few minor issues to deal with later.