Implemented new approach for message filtering.