added time functions.