Updated function documentation.