Reset button implemented.
Refactored to have better naming