Added optional parameter for setting CURL call timeouts