Barrier Layers Against Diffusion