Fixed async usage(replaced function calls with functions)