Add a few checks.