Reorder Thread dependencies