Cleaned the script up, added settings and more