Sorting out app_name