Third version. Modify some time function.