? would it make the code simpler and easier to read if you made this block of if statements a switch statement with the 4 cases instead. ( @christopherluo )