Once a well is drilled and cased, completion engineers optimize production by inserting equipment into the wellbore. Completion involves perforating the casing near productive formations, installing tubing and other equipment like packers and valves, and performing operations like fracturing or sand control to facilitate hydrocarbon flow. The goal is to recover the maximum amount of oil and gas possible at a reasonable cost. Engineers consider formation evaluation data, expected production rates and conditions, and may install equipment like pumps or gas lift systems as needed to optimize each individual well completion.