NL2TTL,

Probably the code is getting hung up somewhere in the program. You need to determine where it is getting hung up. There are several ways to do it. I would move the next line around in the program and see how far the program goes

TOGGLE STATUSLED

This is just one way to do it.

Robert