Exhibit 10.4 AMENDED AND RESTATED SECURITY AGREEMENT