Do this as a `before_filter`