Added some utilities to carry out experiments.