Adds support for redirects