Cleaned up script for possible problems
Got script working with the ability to backup