Added the ability to specify references.