Updated, so that it is possible to scan the first derivative of the potential after the massdetermination to test for multiple extrema