Added documentation to new function.