Before rewriting nodes