Added resource.render()