Updated the extended script.