Optimize structure.