More accurate wildcarding and fragment handling.