Added reset functionality.