Cleaned up for loops by using for each instead where it makes sense