Merged Hong's pull request for coef