Missing k-length distinct sequences due to an error in branching logic.
commenting out the ksequence commands so that it doesn't automatically run with the program.