Amend flex script.