Added offset measuring.