I am currently trying to migrate this script so it can easily be used by 3rd parties. I'll put the process here.