Added weight/trace saving between runs of the program.