Thanks for sharing this. You can also add in the ability to check the state when you are finished.
https://workflow.is/workflows/3f44378a36464260ae4c2750e02bd263