Added Reset as a function