Add filtering by device.