Updated to work if "-c 0" is used to disable file descriptor caching