Set timeout to milliseconds rather than seconds.