Additional stochastic dynamics, also some bugfixes.