Switched to for-in loop.