Here is a script i started writing for a project i am working on.
Its in the early stages of development, but since it works ok in the tests i did i decided to share it with you so i can get some feedback. Right now the script is encrypted but i will release it under GNU GPL license when i finish it.