SECOND AMENDING AGREEMENT (May 31, 2007 Note Agreement)