Added reset() method