Include rinoo_spawn function to handle multi-threading.