Adding flags to refsets