Added arg matching for method in doResample.