Nicer API for Miner.