Measurement and alignment