automatically stop collecting data once min. number of trials reached in a session