/So, the question is, why does changing the physical location of routines in a "module" affect the program's operation?/ Have you included a subroutine return at all appropriate places? If not, then what the code runs into next will alter its operation. It may or may not then operate correctly. RM -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads