Add add_pattern