Add a security check.