Updating main script