Timeout should be multiplied by 1000 for milliseconds.