Bug fix in piecewise.transform for fan patterns and adding WV baseline matrices