Updating: re-structing some array-foreach functions.
Updating: minor.