Added function to MarketManager class