Adding async with callback to avoid race condition of using method with callback