Allan, I quite agree that switch case seems to be the best bet, trouble is, my books don't cover that. I'll figure it out eventually. What would you recommend as the switch variable? That is where I always choke. The cases are easy, as they just set pins high/low to engage/disengage relays and LEDs. It's setting up the first part that kicks my butt.