Reworked getPrices to use a callback