Code for Vilmi's experiment.