>I am stuck. Any ideas would be greatly appreciated! Take a look at the program as a whole. Could you structure it better, more re-use? Could you write part of it as an interpreter for a tokenised program (which could be in external eeprom)? Are there parts you could do without? Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics