Filtering out completed tasks