Removed unnecessary round length computations.
Added a heuristic for response behavior.
Updated sample.