Removed wait on SpatialReferenceChanged. Just wait on LayersLoaded.