Simplify append function