Settings

changing the loop to use the passed array.