Demands and Offers function added