Economic quality control