SECOND AMENDMENT, CONSENT AND WAIVER