one or more processors to perform the actions of: determining a set of controlling elements for each of said plurality of scan elements, wherein a first scan element is a controlling elements for a second scan element if an output of the first scan element affects the input of the second scan element; distributing said set of controlling elements among N groups; in case a scan element is assigned