I am not sure how to refactor this to be async. This is called in from a template that is rendering at that moment so it needs to return the value.