Gibbs sampling (approximate).