Adapted for PPCoin and Peerco.in