Replaced ifs/elseifs with switch