Experiment framework#2 (fewer loops, seems to work)