Pipes and flanges