Updated comm to save endpoints when generating rank maps.