Corrected cortex script!