Support sampling method with arguments