Renamed dep_id to id, error handling in get_dependencies.