Fixed the sequence numbers now. The test case works for now.
Cleanup the next request method
Refactoring
Some more cleanup
Cleanup
Some more cleanup. Need to move away from Maybe to Error. Removed TIO