Added SetTimes() and SetWeight() methods to middleman.Middleman.