Cleaned up script before restore add.