Update the sequence