Dealing with promises.