Added nHeight and nNetworkStake functions