Updated async code