That helped somewhat. It also made me rethink my program.
It seemed like I had to keep increasing the millisecond delay as it went along, instead of being able to put the same amount of delay for each block. I guess I'll have to experiment with it some more.
Thanks for your help.