Added documentation for new function