Added add_ref() to new utils file