Backoff, you must admit to yourself that this is nothing like your script except for a few minor parts.
Also, I added some more updates.