Added rewrite alternative (#3)