Config script rewritten with whitelist model.