Update sequence.R