Updated for BFGMiner