Delay function

We need a Delay function to allow time for action flows to run. Depending on the situation, one stream of action runs over the other and this has caused problems.

Duplicate of this.