Added the append function.