Cleaned unused functions and checks from cortex. for now all simple.