Refactored CommandRead as switch.