Added thread monitor
Added thread monitor