add_sequence_factor function

Add to visit sequence for factor variables