Make thr_mining an array of pointers