A bit of a hack to get nested piecewise statements to print out properly