Add prior and posterior probability functions