PrologTextLoader file edited to handle compiler hang.