Updated getAllApps method