Added time tracking to simulation.