P3: Pipeline construction