Changed this to use the flag nFile = -1 now.