Improved objective function to reflect work from paper, now very nice pulses tend to be selected as the best result