Add some conveniences for prior/following states.
Broken tests for prior/following.
Use constants.