Bug fixes.
Redirection operation.
Fix redirection code path.