CONSENT AND SECOND AMENDMENT TO CREDIT AGREEMENT