timeout should be in milliseconds, not seconds.
Add a TODO.