Removes usage of thread index.