Corrected error in checking for stops.