Metropolis-Hastings seems to be working now