Hacking together a resource object