Let's pass the resource in as a parameter instead of using an instance field.