First working version with MCMC executed in separate process