Improved ModEnvSegSeq - unfinished