Added support for negative coefficients