Modified for MintCoin network