Change latency parameter to number.