Improvement made to rewrite rule.