Added a patch to solve some problems with inverse function and temp file...

... names