Some of the code for experiment.