Implement filter for repeated simple elements (WIP)