Put in a sleep delay of 40 secs fixed the problem. Would be nice if there was a better way to do this.

Daniel.