Add some more documentation.
Simplify.