If the well is good enough, a wellhead, with valves and control equipment, is built onto the top of the well casing.