Debugged, so I can at least run the sampler and visualize the trace.