Rename on_request to before_request