Used dummy_threading when threading isn't available.