Added support for trigger referencing.