Modified tutorial to create a list of actions and loop through them instead of chaining actions.