FINAL SCRIPT THAT WORKS