Handles spawning of pipes.