Added a time system which we can speedup.