Change long else if statments to switches