Made RegenedState a java file.