Update two parameters for cosmology