Replaced multiple ifs with switch