added auto stop of cpe experiment by looking at duration param