Implement after and around filter.