Machine Tending for Quality Inspection