Modifies polygon API to return self-references.