Base template rewritten