Made resource referencing work