Re-wrote the term re-writing system.