Cloned from http://code.google.com/p/rat4nuke/