Use switch when extracting options