updated
updated Time function to work with SimulateTimeTo()