Inspecting for defects