Level rewrite