Added some code to handle 3rd ultrasonic