Converted all but one for loops to foreach's and added a dataservice getter now used