Added stuff for MCMC