So they removed the foreign gods from their midst and served Yahweh; and he could no longer bear the misery of Israel.