Added race simulation code.