Extraction of oil and gas