Now with correct time management flow and work_time in secs