Start of AuxPOW logic