Added data parsing for motor speed and direction