Added plotting and support for MCMC.