Removing the undefined code here means that you now must explicitly provide a timeout value, and the default will never be used. This is a problem.