Now allows use of sga instead of cortex (untested so far)