Added flexibility to handle unscaled potentials.