Updates the script to match new serial input