Added fractional coefficients (now work properly)