New set_reference method