Implement filtering in workers