Starting to add rule matching.