Add support for references.