Used a local array to avoid indentation issues.