Added FlashSample, allow custom samplers