Merged changes in readTrialParameters