Added refresh mode and reset mode, so you can either hard reset or soft refresh.