Simplify append code.