Got a fit working but still have trouble with the thrashing on large problems.