Added error to be thrown if there are no permutation happened.
Updated convertToSequence sub module.