Made code run on a 16 second loop.

Hopefully this will be enough time
Augmented the loopdelay

looks like it wasn't high enough