Added some more informative documentation on the function.