Add timeout setting to CURL calling