Add code for software controlled hard reset.