Cleaned up end of mathpar.