Updated the use of the sequence module to work with recent versions

Seems like there was a breaking change in the sequence module.