Checking overflow on Grates