THe miner now uses threading