Life extension of machinery in the oil and gas industry