Checking for wrong limits and better tests
Logging critical errors