Added Reset functionality.