Adding support for custom redirects.