Working but unstable lmfit wrapper