Added support for references.