Improve support for stochastic fitness functions.