Fixed #38 by a generic function to print pattern AND fixed #39 by using dynamic blacklist lng.