Simplify by using waitFor action
Use waitFor action