Why not just add
Code:
CLEARWDT
inside the tight loop?