if you save the pattern each time you can use the reload pattern to get back to the previous state…