Flesh out the RetrieveAppNames() function.