Updating output script