Messy, but cleans some things up.