Replace SimpleThread by JThread now implementing same features