Added inline switch generation as an option.