Can you add some JSDoc comments for these functions?