Async working with promises.