Plumb in such that LM gets the function as the square, rather than abs. Still doesnt work though. Stick with BFGS