Return the correct promise object