Fix comments.
Add a warning message when terms can't be applied instead of an error.