Started implementing variational updates