The court may in an order made by it under this Act include such provision as it considers just for amending any agreement or security in consequence of a term of the order.