Complete integration of in_experiment

in_experiment, which controls whether or not data is logged,