Added permissions to activities.