Boiling Shrimp

I bring the pot/water to a boil, add the shrimp and imediately turn off the heat and cover for 5 or 6 minutes. There always seems to be enough heat to cook the shrimp and enough time to soak in the spices. I don't add ice. I have never had a problem with under or over cooking.