Register tests pass.
Simplified the register class a bit.