Adding local definitions and references.