Rewrite method.