Amended and Restated Security Agreement,