Passing two arguments into append instead of two separate calls