Made listing packages not happen on the ui thread.