Included add_external_reference to avoid problems