Once the US was able to ramp up construction of destroyers and destroyer escorts, as well as bringing over highly effective anti-submarine techniques learned from the British from experiences in the Battle of the Atlantic, they would take a significant toll on Japanese submarines, which tended to be slower and could not dive as deep as their German counterparts. Japanese submarines, in particular, never menaced the Allied merchant convoys and strategic shipping lanes to any degree that German U-boats did. One major advantage the Allies had was the breaking of the Japanese "Purple" code by the US, so allowing friendly ships to be diverted from Japanese submarines and allowing Allied submarines to intercept Japanese forces.