Changing to LMFIT