I have my own ideas for finalizing this script with the addition of a dialog box for easy control and settings.
If you try to explain in more detailed examples with screenshots what you are missing in this script, then I can try to expand its capabilities or change something in it. To make the script more flexible and customizable, in accordance with what you want to see in it or what other users will want and will be able to customize in this script. Please offer your ideas and I will think about what can be done. Or maybe other experienced scripters will help you. And don't forget to let me know about any bugs you find in this script.