A technique I've used in the past for complex structures - definitely worth the effort!
John Weller 01380 723235 07976 393631
And another tool I have which helps is to add comments to the end of the terminating commands - e.g. ENDIF, ENDFOR, ENDDO, EXIT etc. which help to identify the branch / loop.