Removed insert_thread function and just use ordered insert