Added rule matching to assist in configuration.