Implemented foreasch and index