Using app_id generator in appropriate places.