Improved the seq, and added a basic test for it.