Changed thr_kill to work in master.