Update gnoref script to allow multiple refs