Add IO select for timeouts