Now working, but not stochastic