Implemented sequenceVector in TH and eliminated the workaround code.