Add time functionality