Added basic documentation for the two helper methods.