Made the reading of the files safer in GetLLM