Also, the line right below this still uses `record` even though you renamed it to be `resource`. I'm not partial either way, but please make the method consistent so it either uses `record` or `resource` everywhere.