Remove dependency on welford