Hopefully the title was self explanatory but just in case...

I want to change the permalink structure of my WordPress blog, but that will cause a lot of 404 errors.

Is there a plug-in for wordpress that would automatically create 301 redirects when the permalink structure is changed? Or is there another route where I wouldn't have to manually enter ~500 redirects?