Used indexed promise, removed unessassary comma.