Added rewrite_once