Adding the resolve method