Automatic Fan Curve for Nvidia GPU's

New to the Forum and came up with a solution to provide a fan speed curve that other people might like to use too. I’ve played around between manually setting a fixed Fan speed or letting the GPU’s automatically take care of the temps (which always seem to let the GPU temp go higher than I’m comfortable with).

So I took a little time and wrote a simple Perl script to maintain my GPU temps.

Looking for feedback and ideas about making the fan curve script better.
Thanks in advance.