Added a main loop for experiments.