Added reset functionality