Dynamic composition of pipes