Had to make MCMCKernel into a class (instead of an interface) to properly manage memory.