Has been changed syntax for promise to ES6.