Added Switch case and do while checks for WMC.