Add a loop in case of multiple preferences files