Ah, didn't realize it was async, will setup a shared function.