An alternative to async