Setting different variables from serial input