Reinstated the append function