Renamed id to scope