Added cached hash into for loop.