Added some more debug output to redirection