Removed enchanced for loops to work on k200