Added checkOver function.