Added SetTime method.