nit: If the timeout value is 0, we don't need to pass it explicitly. But what you do here is also correct.