Added Uri.fragment.  Checking type existence before registering.