Added rewrite and map instrictions
Added rewrite and map instrictions