Method of manufacturing a drug delivery device, comprising the steps of (i) providing a plurality of components which in an assembled state form a processor-controlled drug delivery device, (ii) determining a parameter value for at least one component, (iii) assembling the components to form a drug delivery device, and (iv) storing in the processor memory correction data, the correction data being based on one or more differences between a determined parameter value and a corresponding nominal value.