Use switch statements in preparation for adding more architectures.