Added basic threading.  More SWF implementation.