Use switch case instead of if statements.