Code for stage experiments.