The parasha and haftara both point to a dual purpose for the plagues. One purpose is Pharaoh's recognition of God, and the second is Pharaoh's recognition that God intervenes in the natural world.