One rule removed - worked only for erroneous entries. Refactoring: more rules moved to separate functions.