SECOND AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT Dated as of October 4, 2004