Support for pseudo threading for UI updates.