The Germans had broken the Yugoslav diplomatic codes and were well aware of Paul's attempts to play off the Axis powers against the Allied powers to secure the best deal for Yugoslavia; Paul's salvation in 1939 rested with the fact that Germany was about to invade Poland and needed raw materials from Yugoslavia like bauxite and copper to keep the German armaments industry going.