Make filterDoc and filterOps async