Update to use id instead of slug.