Self-contained correction script, PbPb and pp