Corrected wget command
Switch statements in the if