Handle seeds change correctly - slight change to the code.