Sounds ok, but I wouldn't go so far as to say messy sockets, especially when you're talking about Google API queries. With your method, you're talking 4 or 5 layers when /sock commands can talk directly to google with ease.