Added comment to nested loops