Amended and restated SECURITY AGREEMENT