);
    }

    function onSourcesChange(event, type) {
        // As input sources are connected if they are tracked-pointer devices
        // look up which meshes should be associated with their profile and
        // load as the controller model for that hand.
        for (let inputSource of event.added) {
          if (inputSource.targetRayMode == 'tracked-pointer') {
            // Use the fetchProfile method from the motionControllers library
            // to find the appropriate glTF mesh path for th