Hi John: A very powerful method of simplifying code has to do with how you format the listing. For example put a page break at the beginning of each subroutine. For each new loop entry indent the listing. When this is done on what many would call good code there will be no case where more than one face of one sheet of paper is needed. If the main program has a long loop with a bunch of code (no subs) between the top and bottom of the loop it would take many sheets of paper to print the main routine. This is poor programming as it violates a span of control concept. Much better to make the intermediate code a routine that's called, now the main program fits on one face of one sheet of paper. Microsoft has a couple of paper back books on this general topic. Also see: Printed Page Formatting at http://www.prc68.com/I/PIC16F88.shtml#CL4PIC -- Have Fun, Brooke Clarke http://www.prc68.com/Alpha.shtml All my web pages listed based on html name http://www.PRC68.com http://www.precisionclock.com http://www.prc68.com/I/WebCam2.shtml 24/7 Sky-Weather-Astronomy Cam -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist