Added a transformation to remove negative coefficients.