Complex structure change.
Redirect processing, argument parsing added. Ruleset improved.