Reset Function is implemented