Hooking up type selector to the cortex wrapper