Sequence number implementation