Implement DialTimeout and DialUriTimeout functions
Implement Wait with timeout