Added in iteration for sample and subset files