AMENDMENT NO. 4 AND WAIVER