Use async task more correctly