Modified trident library