MHs treshold function now working as it should
Left to do is send the restart command to cgminer