Switch statement scoping done