Add some documentation for later when I have to look at it again.