Updated the function documentation