WAIVER, CONSENT, AND AMENDMENT AGREEMENT