Making it work asynchronously with google spreadsheet