Add forEachPiece feature