Demo of AnyEvent usage.  Needs tweeking.