Added reset funcion