Adjusted check_blacklist method; Added access to check_whitelist method