It's a bit late for this, but does this do the correct thing? I would've though the `copy` means that `mparams[0]` and `mparams[1]` are not modified by the `+=`'s below.