Simplified using done() callback with promises.