Folks, A big thanks to all who replied. I had the insight over the weekend that as Ulf said the code can be rewritten with selective receive. I decided to stick with gen_fsm, though. I´ll post if I have problems. Thanks, Joel -- http://wagerlabs.com/tech