Generates stimuli and stimulus key.