Add some basic functionality to the rewrite.