Change resourceid implementation