More attempts at multi-threading.