Reorganize threads