Switched check for main