Add documentation to new function.