Cortex is (at least for now) really similar to Mimir. We should be, hopefully, able to reuse the code from Mimir for Cortex.