Recording the stimuli at the beginning of the trial now works.
Changed the structure of the configuration file.