Replace probabilities change in cons-cell by function generators