Add safety check.