Cleaned up, fixed coef format