Amended and Restated SECURITY AGREEMENT