WAIVER, AMENDMENT AND CONSENT AGREEMENT