This commit will add the append method and associated helper functions, and introduce any necessary changes for it.