Fixed too high setting for maxLoops resulting in not executing any loop at all.