Rewrite using Sequel