Set timeout properly.