Add error checking for whitelist and back compat to old variable name.