Repeat-item and other speed improvements.