Seems reasonable - could even make the function more generic than just for users.

Worth including the partner function that creates the element numbering for formatting also - possibly even an importable template insert that renders the numbers?