Changed potential function and re-added IP[] instructions for local extrema