Completed implementation of the update_potentials() view.