Function to generate stimuli sets.