Removed wait on SpatialReferenceChanged. Just do wait on LayersLoaded to ensure the MessageLayer has been loaded before populating it with the messages.