Support for promise in filter