added new parameter time_offset