Added time functionality