Just wanted to get some ideas on what the most efficient way to do the following is using a polled (non-interrupt) routine: In my main program loop, the user has two pushbuttons to control the following modes 1. Press and release LEFT button to run mode 1 2. Press and hold LEFT button for 2 seconds to run mode 2 3. Press and release RIGHT button to run mode 3 4. Press and hold both LEFT and RIGHT buttons for 2 seconds to run mode 4. I realize there are a million ways to do this, but I need some ideas on how to do this most efficiently. Thanks D -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.