TENTH AMENDMENT TO CREDIT AGREEMENT