Use local variable for new_resource.