Wait for all the values to be retrieved before executing callback.