Modified WolframAutomata to loop with new settings upon completing a simulation.