Miner logic completed