Miner bug fixes and changes.