Introduce whitelist and blacklist functions.