Adapt scripts to the @required in ports