Temporary implementation for nested filtering