Separate blacklist check in different conditions. (#309)