Now writes run number to tree