Added trial_duration parameter to track default trial duration.