Adapt scripts to the new documentation