Fixed cortex: Big thanks to @Dorimanx