Created reset function and removed WDT_RESET macro