Check for sequence overflow.
Merge pull request #40 from benbjohnson/sequence-overflow

Check for sequence overflow.