From Eldskegg: Threadsafe GUI