Add option to set timeout
Use timeout when opening request