Adapt scripts to new layout.