Temporary fix to go around file handle accumulation.