Replaced deprecated pids_from_uris with pid_from_uri (closes #812)