Added some documentation and utility methods.