Added documentation for the new function.