Updated buggy minima finder