Change to use coils' thread class.