Updating GA code to async version