Added new function to load stock data