Can you add some JSDoc comments for the helper functions?