Use a reference for allFiles instead.