SEVENTH AMENDMENT AND AGREEMENT TO THE CREDIT AGREEMENT AND SECOND AMENDMENT TO THE SECURITY AGREEMENT