Using google api library instead of google command line tool.