Added some code to handle missing price data.