Implement appendTo