Implement registry redirection

As titled.