In the settlement of a civil suit, in July 2011 investigators from the U.S. Department of Transportation's Pipeline and Hazardous Materials Safety Administration determined that the 2006 spills were a result of BPXA's failure to properly inspect and maintain the pipeline to prevent corrosion. The government issued a Corrective Action Order to BP XA that addressed the pipeline's risks and ordered pipeline repair or replacement. The U.S. Environmental Protection Agency had investigated the extent of the oil spills and oversaw BPXA's cleanup.