Filling involves monitoring the height and diameters of bottles. This is done using the high-resolution BLA light array. First, the BLA detects the width of the bottle neck and compares it with previously taught-in values. Second, the correct cap is selected. Then another light array checks, based on the bottle height, whether the cap is sitting flush on the bottle.