Fixing bug in add_sample that did not correctly selected members when limiting by time.