Removed Piecewise solution