Add implementations for beta1 and beta2