Intercepts event with `before` and `after`.