Script is now fully functioning.

Changed all the methods, actually tested it, etc...