Added rewrite_map option