Integrating ultrasonic into existing code