The requirement is different, but it shows how you move from a "linear" procedure (as per your current blocks which just races through to the end) to a looping procedure, using a clock timer to effect the loop, which waits until each activity has finished before the next is started.