3rd Commit - Script finished. May need improvement,