Correction for calling the stop function.