Added reset button and made it work.