Converted repository to async