You may be right. Admittedly all I did here was make AP's original code compile again.