Avoided function monkey patching, used async function