Added passing a reference to the fetched object in the promise.