annoying stimulus generation scripts. MUST CHANGE SOON!