Added secondary source selection and driving function for 3D WFS