Renamed $name to $id
Fixed namespace declaration