Needs to be an elif
Merge pull request #257 from NielsZeilemaker/fix_sequence_number_check

Needs to be an elif