Added cancel redirection routine