Make populatePrice function execute only once. Improved performance.