Added a lot of changes to the error-checking, as well as checking before we actually change any values to prevent unnecessary changes and undos.
Added a lot of changes to the error-checking, as well as checking before we actually change any values to prevent unnecessary changes and undos.