Implement setEach