Blood showed me how to get the provider type.

Updated code to use DimensionManager to return the provider type
(instead of using 0)