Added and modified the Segway communication code to fit our needs