Fixed to use the resource pattern you suggested.