Made pipepainter work with 4-ways