Added sequence number functionality