Looking for a Special Delay Library

I saw a posting about the QP state machine for Arduino posted within the last month. If you went to a state machine like they use, it would allow you to deal with multiple delays, etc. http://arduino.cc/playground/Code/QP.