Implement dbg flavor of beta-bernoulli