Added watchdog and brownout detect