I am having trouble with the second function. It runs through before there is a value saved in \'w\'. Ive tried setTimout() but it did not help. Im trying to implement async