Ported to MaxCoin