First version of the split sequence script