Changed get_prices() function to update prices.