Using max_time given from server