Add the inplace opt.