Added time functionality.