WIP: Rewrite rules.