Adding to Redirect class for handling redirection