Added local reference to accounts to fix for loop.