Rewriting ugly parts.