Got file redirection working