A new method could improve cosmology research by analyzing supernovae together with the galaxies that host them.