Adds some checks.