Added time functions.