The first time I've ever seen the multiple spec option to ets:select used to good effect.  Slick.