I made an update to the script, found some bugs. If you have this snippet please delete the one you have and repaste the one from here.