Add cortex patch