Added reset method.