@fredrik-johansson what is a better way to handle this? Could something like `tol = copy(ctx.eps)` work? This is quite hackish.