Adapted to work with the experiment Exp04.