Up to a few years ago, Cadmium was also very much used in some types of PVC-stabilizers (so-called "mixed-metal-stabilizers", some of which were based on a mixture of Ba- and Cd-compounds or BaPbCa-compounds). In some countries they are still being used for window frames made of rigid PVC but are, to my knowledge, set to be banned worldwide in the next few years.