Add commandline option for specifying target output file
Implement target output redirection