added stim timing to script