Managing the activity structure