Removed uneeded code.
Added reset button.