Preheat your oven to 350°F (175°C).
In a large skillet, melt the butter over medium heat and sauté the onions and celery until softened, about 5-7 minutes.
In a large bowl, combine the bread cubes with the sautéed vegetables, sage, thyme, salt, and pepper.
Gradually add broth to the bowl, mixing until the bread is moist but not soggy.
If using, fold in cranberries or nuts for added flavor and texture.
Transfer the mixture to a greased baking dish and cover with foil.
Bake for 25 minutes, then remove the foil and bake for an additional 10-15 minutes until golden.
Let the stuffing cool slightly before serving.