Added stall for wait loops

Possible garbage collection/runtime error with wait loops. Added small
0->1 wait loop to fix