Final changes to PBS generating scripts