TERM LOAN AGREEMENT