Reformating the response of the promise.