Making so that appendTo is called last, since it returns the new dataset.