added conditional to quit from loop waiting for experimenter start trigger