Made reset button work.