Add documentation to the new functions