Implement after_filter.