Reset Function for M2