Code for the CheapStakeServer